﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


public partial class _Default : System.Web.UI.Page
{
    DAL dal;
    protected void Page_Load(object sender, EventArgs e)
    {
        dal = new DAL();
        
        GridView1.DataSource =dal.GetAllMerchants("").Tables["Log"]; 
            
        Page.DataBind(); 
    }

    protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
    {
        GridView1.DataSource = dal.GetAllMerchants("").Tables["Log"]; 
        GridView1.DataBind();
    }
    
}
